package com.atguigu.tingshu.account.service;

import com.atguigu.tingshu.model.account.UserAccount;
import com.atguigu.tingshu.vo.account.AccountLockVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

public interface UserAccountService extends IService<UserAccount> {


    void saveUserAccount(Long userId);

    public void saveUserAccountDetail(Long userId, String title, String tradeType, BigDecimal amount, String orderNo);

    BigDecimal getAvailableAmount();

    void checkAndLock(AccountLockVo accountLockVo);
}
